﻿using AbpVnext_Module.DBContext;
using AbpVnext_Module.Model;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Repositories.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace AbpVnext_Module.Repository
{
    [Dependency(ServiceLifetime.Transient)]
    public class PermissionRepository : EfCoreRepository<ProductImageDbContext, PermissionProduct, int>, IPermissionRepository
    {
        public PermissionRepository(IDbContextProvider<ProductImageDbContext> dbContextProvider) : base(dbContextProvider)
        {

        }

        public override Task<PermissionProduct> InsertAsync(PermissionProduct entity, bool autoSave = false, CancellationToken cancellationToken = default)
        {
            return base.InsertAsync(entity, autoSave, cancellationToken);
        }
    }
}
